package com.twu.biblioteca.commands;

import com.twu.biblioteca.domain.Book;

import java.util.List;

public class ReserveBookCommand extends Command {
    private final String bookId;

    public ReserveBookCommand(String bookId) {

        this.bookId = bookId;
    }

    @Override
    public String execute(List<Book> books) {
       return allActions.reserveBook(books,bookId);
    }
}
